<?php

namespace App\Http\Controllers\Upload;

use App\Http\Controllers\Controller;
use App\Common\Common as common;
class TinyPngController extends Controller
{
    public function compress(){
        
        $file = $_FILES;
        
        $serviceUrl = common::compressPicture( $file );
      
        $handler = common::uploadUrlPhote( $serviceUrl );
        
        var_dump($handler);exit;
    }
}
